package c.j.a.d.b.h;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import c.j.a.d.b.d.a0;
import c.j.a.d.b.d.b0;
import c.j.a.d.b.d.d0;
import c.j.a.d.b.d.f0;
import c.j.a.d.b.d.h0;
import c.j.a.d.b.d.i;
import c.j.a.d.b.d.j;
import c.j.a.d.b.d.j0;
import c.j.a.d.b.d.k;
import c.j.a.d.b.d.l0;
import c.j.a.d.b.d.m0;
import c.j.a.d.b.d.s;
import c.j.a.d.b.d.t;
import c.j.a.d.b.d.u;
import c.j.a.d.b.d.v;
import c.j.a.d.b.d.w;
import c.j.a.d.b.d.x;
import c.j.a.d.b.d.z;
import c.j.a.d.b.e.l;
import c.j.a.d.b.n.d;
import c.j.a.d.b.n.d.b;
import c.j.a.d.b.n.p;
import c.j.a.d.b.n.q;
import c.j.a.d.b.n.r;
import c.j.a.d.b.n.y;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: DownloadAidlTask */
public interface a extends IInterface {

    /* compiled from: DownloadAidlTask */
    public static abstract class a extends Binder implements a {

        /* compiled from: DownloadAidlTask */
        public static class a implements a {
            public IBinder a;

            public a(IBinder iBinder) {
                this.a = iBinder;
            }

            public c a() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    c cVar = obtain2.readInt() != 0 ? (c) c.CREATOR.createFromParcel(obtain2) : null;
                    obtain2.recycle();
                    obtain.recycle();
                    return cVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.a;
            }

            public s b() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    s sVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.s.a.a;
                    if (readStrongBinder == null) {
                        sVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IChunkCntAidlCalculator");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof s)) {
                            sVar = new c.j.a.d.b.d.s.a.a(readStrongBinder);
                        } else {
                            sVar = (s) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return sVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public c.j.a.d.b.d.c c() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(6, obtain, obtain2, 0);
                    obtain2.readException();
                    c.j.a.d.b.d.c y0 = c.j.a.d.b.d.c.a.y0(obtain2.readStrongBinder());
                    return y0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public i d() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(7, obtain, obtain2, 0);
                    obtain2.readException();
                    i y0 = c.j.a.d.b.d.i.a.y0(obtain2.readStrongBinder());
                    return y0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public v e() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    v vVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(8, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.v.a.a;
                    if (readStrongBinder == null) {
                        vVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadAidlInterceptor");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof v)) {
                            vVar = new c.j.a.d.b.d.v.a.a(readStrongBinder);
                        } else {
                            vVar = (v) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return vVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public t f() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    t tVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(9, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.t.a.a;
                    if (readStrongBinder == null) {
                        tVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof t)) {
                            tVar = new c.j.a.d.b.d.t.a.a(readStrongBinder);
                        } else {
                            tVar = (t) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return tVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public j0 g() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    j0 j0Var;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(10, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.j0.a.a;
                    if (readStrongBinder == null) {
                        j0Var = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadForbiddenAidlHandler");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof j0)) {
                            j0Var = new c.j.a.d.b.d.j0.a.a(readStrongBinder);
                        } else {
                            j0Var = (j0) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return j0Var;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public k h() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    k kVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(11, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.k.a.a;
                    if (readStrongBinder == null) {
                        kVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IRetryDelayTimeAidlCalculator");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof k)) {
                            kVar = new c.j.a.d.b.d.k.a.a(readStrongBinder);
                        } else {
                            kVar = (k) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return kVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public d0 i() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    d0 d0Var;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(12, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.d0.a.a;
                    if (readStrongBinder == null) {
                        d0Var = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadDiskSpaceAidlHandler");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof d0)) {
                            d0Var = new c.j.a.d.b.d.d0.a.a(readStrongBinder);
                        } else {
                            d0Var = (d0) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return d0Var;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public x j() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    x xVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(13, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.x.a.a;
                    if (readStrongBinder == null) {
                        xVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadAidlMonitorDepend");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof x)) {
                            xVar = new c.j.a.d.b.d.x.a.a(readStrongBinder);
                        } else {
                            xVar = (x) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return xVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public u k() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(14, obtain, obtain2, 0);
                    obtain2.readException();
                    u y0 = c.j.a.d.b.d.u.a.y0(obtain2.readStrongBinder());
                    return y0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public z l() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    z zVar;
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    this.a.transact(15, obtain, obtain2, 0);
                    obtain2.readException();
                    IBinder readStrongBinder = obtain2.readStrongBinder();
                    int i = c.j.a.d.b.d.z.a.a;
                    if (readStrongBinder == null) {
                        zVar = null;
                    } else {
                        IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadCompleteAidlHandler");
                        if (queryLocalInterface == null || !(queryLocalInterface instanceof z)) {
                            zVar = new c.j.a.d.b.d.z.a.a(readStrongBinder);
                        } else {
                            zVar = (z) queryLocalInterface;
                        }
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return zVar;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int a(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    obtain.writeInt(i);
                    this.a.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                    i = obtain2.readInt();
                    return i;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public w b(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    obtain.writeInt(i);
                    this.a.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                    w y0 = c.j.a.d.b.d.w.a.y0(obtain2.readStrongBinder());
                    return y0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public w a(int i, int i2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.model.DownloadAidlTask");
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.a.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                    w y0 = c.j.a.d.b.d.w.a.y0(obtain2.readStrongBinder());
                    return y0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public a() {
            attachInterface(this, "com.ss.android.socialbase.downloader.model.DownloadAidlTask");
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.ss.android.socialbase.downloader.model.DownloadAidlTask";
            if (i != 1598968902) {
                IBinder iBinder = null;
                w a;
                switch (i) {
                    case 1:
                        parcel.enforceInterface(str);
                        c cVar = ((b) this).a.a;
                        parcel2.writeNoException();
                        if (cVar != null) {
                            parcel2.writeInt(1);
                            cVar.writeToParcel(parcel2, 1);
                        } else {
                            parcel2.writeInt(0);
                        }
                        return true;
                    case 2:
                        y yVar;
                        parcel.enforceInterface(str);
                        l lVar = ((b) this).a.c;
                        if (lVar == null) {
                            yVar = null;
                        } else {
                            yVar = new y(lVar);
                        }
                        parcel2.writeNoException();
                        if (yVar != null) {
                            iBinder = yVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 3:
                        parcel.enforceInterface(str);
                        i = ((b) this).a(parcel.readInt());
                        parcel2.writeNoException();
                        parcel2.writeInt(i);
                        return true;
                    case 4:
                        parcel.enforceInterface(str);
                        a = ((b) this).a(parcel.readInt(), parcel.readInt());
                        parcel2.writeNoException();
                        if (a != null) {
                            iBinder = (c.j.a.d.b.d.w.a) a;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 5:
                        parcel.enforceInterface(str);
                        a = ((b) this).b(parcel.readInt());
                        parcel2.writeNoException();
                        if (a != null) {
                            iBinder = (c.j.a.d.b.d.w.a) a;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 6:
                        parcel.enforceInterface(str);
                        c.j.a.d.b.d.c b = d.b(((b) this).a.i);
                        parcel2.writeNoException();
                        if (b != null) {
                            iBinder = (c.j.a.d.b.d.c.a) b;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 7:
                        p pVar;
                        parcel.enforceInterface(str);
                        j jVar = ((b) this).a.q;
                        if (jVar == null) {
                            pVar = null;
                        } else {
                            pVar = new p(jVar);
                        }
                        parcel2.writeNoException();
                        if (pVar != null) {
                            iBinder = pVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 8:
                        c.j.a.d.b.n.z zVar;
                        parcel.enforceInterface(str);
                        m0 m0Var = ((b) this).a.j;
                        if (m0Var == null) {
                            zVar = null;
                        } else {
                            zVar = new c.j.a.d.b.n.z(m0Var);
                        }
                        parcel2.writeNoException();
                        if (zVar != null) {
                            iBinder = zVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 9:
                        c.j.a.d.b.n.w wVar;
                        parcel.enforceInterface(str);
                        b0 b0Var = ((b) this).a.k;
                        if (b0Var == null) {
                            wVar = null;
                        } else {
                            wVar = new c.j.a.d.b.n.w(b0Var);
                        }
                        parcel2.writeNoException();
                        if (wVar != null) {
                            iBinder = wVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 10:
                        r rVar;
                        parcel.enforceInterface(str);
                        l0 l0Var = ((b) this).a.n;
                        if (l0Var == null) {
                            rVar = null;
                        } else {
                            rVar = new r(l0Var);
                        }
                        parcel2.writeNoException();
                        if (rVar != null) {
                            iBinder = rVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 11:
                        q qVar;
                        parcel.enforceInterface(str);
                        c.j.a.d.b.e.s sVar = ((b) this).a.p;
                        if (sVar == null) {
                            qVar = null;
                        } else {
                            qVar = new q(sVar);
                        }
                        parcel2.writeNoException();
                        if (qVar != null) {
                            iBinder = qVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 12:
                        c.j.a.d.b.n.v vVar;
                        parcel.enforceInterface(str);
                        f0 f0Var = ((b) this).a.o;
                        if (f0Var == null) {
                            vVar = null;
                        } else {
                            vVar = new c.j.a.d.b.n.v(f0Var);
                        }
                        parcel2.writeNoException();
                        if (vVar != null) {
                            iBinder = vVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 13:
                        c.j.a.d.b.n.x xVar;
                        parcel.enforceInterface(str);
                        c.j.a.d.b.d.q qVar2 = ((b) this).a.l;
                        if (qVar2 == null) {
                            xVar = null;
                        } else {
                            xVar = new c.j.a.d.b.n.x(qVar2);
                        }
                        parcel2.writeNoException();
                        if (xVar != null) {
                            iBinder = xVar;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 14:
                        c.j.a.d.b.n.s sVar2;
                        parcel.enforceInterface(str);
                        h0 h0Var = ((b) this).a.s;
                        if (h0Var == null) {
                            sVar2 = null;
                        } else {
                            sVar2 = new c.j.a.d.b.n.s(h0Var);
                        }
                        parcel2.writeNoException();
                        if (sVar2 != null) {
                            iBinder = sVar2;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    case 15:
                        c.j.a.d.b.n.b0 b0Var2;
                        parcel.enforceInterface(str);
                        a0 a0Var = ((b) this).a.t;
                        if (a0Var == null) {
                            b0Var2 = null;
                        } else {
                            b0Var2 = new c.j.a.d.b.n.b0(a0Var);
                        }
                        parcel2.writeNoException();
                        if (b0Var2 != null) {
                            iBinder = b0Var2;
                        }
                        parcel2.writeStrongBinder(iBinder);
                        return true;
                    default:
                        return super.onTransact(i, parcel, parcel2, i2);
                }
            }
            parcel2.writeString(str);
            return true;
        }
    }

    int a(int i) throws RemoteException;

    w a(int i, int i2) throws RemoteException;

    c a() throws RemoteException;

    s b() throws RemoteException;

    w b(int i) throws RemoteException;

    c.j.a.d.b.d.c c() throws RemoteException;

    i d() throws RemoteException;

    v e() throws RemoteException;

    t f() throws RemoteException;

    j0 g() throws RemoteException;

    k h() throws RemoteException;

    d0 i() throws RemoteException;

    x j() throws RemoteException;

    u k() throws RemoteException;

    z l() throws RemoteException;
}
